package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.ContractImageBean;
import com.molichuxing.services.infrastructure.dto.request.create.ContractImageCreateDto;

import java.util.List;

/**
 * <p>
 * 合同附件表 Mapper 接口
 * </p>
 *
 * @author zhaopenghui
 * @since 2019-10-21
 */
public interface ContractImageMapper extends RootMapper<ContractImageBean> {

    /**
     * 批量添加
     *
     * @param contractImageList
     * @return
     */
    int createBatch(List<ContractImageCreateDto> contractImageList);

    /**
     * 获取list集合
     *
     * @param contractId
     * @return
     */
    List<ContractImageBean> getListByContractId(Integer contractId);

    /**
     * 通过名称获取list集合
     *
     * @param name
     * @return
     */
    List<ContractImageBean> getListByName(String name);

}